package lew.bing.exp.myFutures;

import java.util.concurrent.Callable;
import java.util.concurrent.Executor;
import java.util.function.Consumer;
import java.util.function.Function;

/**
 * Created by 刘国兵 on 2018/10/1.
 */
public class FutureTask<T> extends java.util.concurrent.FutureTask<T> implements Future<T> {
    public FutureTask(Callable<T> callable) {
        super(callable);
    }

    public FutureTask(Runnable runnable, T result) {
        super(runnable, result);
    }

    @Override
    public void addListener(FutureListener<T> listener) {

    }

    @Override
    public Executor getAsyncExecutor() {
        return null;
    }

    @Override
    public Future<Void> forEach(Consumer<T> consumer) {
        return null;
    }

    @Override
    public <S> Future<S> map(Function<T, S> transfer) {
        return null;
    }

    @Override
    public <S> Future<S> flatMap(Function<T, Future<S>> transfer) {
        return null;
    }
}
